home *** CD-ROM | disk | FTP | other *** search
- page 60,132
- TITLE STFIXON - Turn STFIX.COM on or off
- ;-------------------------------------------------------------------
- ;
- ; This routine toggles STFIX.COM on or off. When STFIX is on,
- ; SMARTERM 100 (ST100.EXE) can be run without the original disk.
- ; For SMARTERM 100 ver. 4.0c
- ;
- ; by Keith M. Bailey 12/29/85 version 4.0c
- ;
- ;-------------------------------------------------------------------
- CODESG SEGMENT
- ASSUME CS:CODESG,DS:NOTHING,ES:NOTHING
- ORG 0100H
- STFIXON PROC FAR
- START: MOV AX,00
- MOV DS,AX ;Set DS to 0000
- MOV DX,OFFSET NOSTFIX ;Point to error message
- LDS SI,DS:[13H*4] ;Point to INT 13H
- CMP WORD PTR DS:[SI],9CFBH ;Is STFIX installed ?
- JNE DONE ; No
- CMP WORD PTR DS:[SI+2],0FC80H
- JNE DONE ; No
- MOV AL,BYTE PTR DS:[SI-1] ;Get flag from STFIX
- NOT AL ;Toggle flag
- MOV BYTE PTR DS:[SI-1],AL ;Store flag back in STFIX
- CMP AL,00 ;Is flag = 00 ?
- JE OFF ; Yes - print off message
-
- MOV DX,OFFSET MSSGON ;Point to ON message
- JMP DONE
-
- OFF: MOV DX,OFFSET MSSGOFF ;Point to OFF message
-
- DONE: MOV AX,CS ;DS:DX points to string
- MOV DS,AX
- MOV AH,09H
- INT 21H ;Print string
- INT 20H ;Terminate
-
- NOSTFIX DB 0DH,0AH,'STFIX must be resident before this routine is run.',0DH,0AH,'$'
- MSSGON DB 0DH,0AH,'Resident program to trap for ST100.EXE is ON.',0DH,0AH,'$'
- MSSGOFF DB 0DH,0AH,'Resident program to trap for ST100.EXE is OFF.',0DH,0AH,'$'
-
- STFIXON ENDP
- CODESG ENDS
- END STFIXON
-